package org.itboys.pay.tools;

import org.apache.commons.lang3.StringUtils;
import org.itboys.pay.weixin.AppPaySignTool;

/**
 * Created by wang on 2016/3/31.
 */
public class PrepayResult {
    private String alipayString = StringUtils.EMPTY;

    private String timeStamp = StringUtils.EMPTY;
    private String paySign = StringUtils.EMPTY;
    private String appId = StringUtils.EMPTY;
    private String package_ = StringUtils.EMPTY;
    private String signType = StringUtils.EMPTY;
    private String nonceStr = StringUtils.EMPTY;
    private String prepayId = StringUtils.EMPTY;
    private String partnerid = StringUtils.EMPTY;

    public PrepayResult(){}

    public PrepayResult(AppPaySignTool appPaySignTool){
        this.timeStamp = appPaySignTool.getTimestamp();
        this.paySign = appPaySignTool.getSign();
        this.appId = appPaySignTool.getAppid();
        this.package_ = appPaySignTool.getPackage_();
        this.signType = "MD5";
        this.prepayId = appPaySignTool.getPrepayid();
        this.nonceStr = appPaySignTool.getNoncestr();
        this.partnerid = appPaySignTool.getPartnerid();
    }

    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getPaySign() {
        return paySign;
    }

    public void setPaySign(String paySign) {
        this.paySign = paySign;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getPackage_() {
        return package_;
    }

    public void setPackage_(String package_) {
        this.package_ = package_;
    }

    public String getPrepayId() {
        return prepayId;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public String getAlipayString() {
        return alipayString;
    }

    public void setAlipayString(String alipayString) {
        this.alipayString = alipayString;
    }

    public String getPartnerid() {
        return partnerid;
    }

    public void setPartnerid(String partnerid) {
        this.partnerid = partnerid;
    }
}
